//
//  SideSteal.swift
//  AlterationSwitch
//
//  Created by solarke_apple_mini_1 on 2018/10/24.
//  Copyright © 2018年 石家庄科林电气股份有限公司. All rights reserved.
//

import UIKit

class SideStealViewController: UITableViewController {
    // MARK: - IBOutlets
    @IBOutlet var contentViews: [UIView]!
    override func viewDidLoad() {
        super.viewDidLoad()
        tableView.tableFooterView = UIView(frame: .zero)
    }
    
    // MARK: - IBAction
    @IBAction func itemTapped(tap: UITapGestureRecognizer) {
        let index = contentViews.firstIndex(of: tap.view!)!
        notificationCenter.post(name: notificationSideStealType, object: nil, userInfo: ["homeType": index + 1])
        // 切换抽屉效果
        slideMenuController.switchController()
    }
}
